package com.lmxdawn.api.admin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 资源表
 * </p>
 *
 * @author huangyubin
 * @since 2024-07-05
 */
@TableName("file_resource")
public class FileResource implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 资源id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 资源分组id
     */
    private Integer tagId;

    /**
     * 资源的类型（0：图片）
     */
    private Byte type;

    /**
     * 资源的原名
     */
    private String filename;

    /**
     * 资源的路径（不加 域名的地址）
     */
    private String path;

    /**
     * 大小
     */
    private Integer size;

    /**
     * 资源的文件后缀
     */
    private String ext;

    /**
     * 创建时间
     */
    private Date createTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getTagId() {
        return tagId;
    }

    public void setTagId(Integer tagId) {
        this.tagId = tagId;
    }

    public Byte getType() {
        return type;
    }

    public void setType(Byte type) {
        this.type = type;
    }

    public String getFilename() {
        return filename;
    }

    public void setFilename(String filename) {
        this.filename = filename;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public Integer getSize() {
        return size;
    }

    public void setSize(Integer size) {
        this.size = size;
    }

    public String getExt() {
        return ext;
    }

    public void setExt(String ext) {
        this.ext = ext;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "FileResource{" +
        "id = " + id +
        ", tagId = " + tagId +
        ", type = " + type +
        ", filename = " + filename +
        ", path = " + path +
        ", size = " + size +
        ", ext = " + ext +
        ", createTime = " + createTime +
        "}";
    }
}
